import Vue from 'vue'
import VueRouter from 'vue-router'
import jianli from '../views/jianli.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'jianli',
    component: jianli,
    children: [
      { path: 'all', component: ()=> import('../views/All.vue') },
      { path: 'work', component: ()=> import('../views/Work.vue') },
      { path: 'origin', component: ()=> import('../views/Origin.vue') },
    ]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
